#pragma once
#include <iostream>

#include "calculator.h"

void test1()
{
	std::string str1 = " -1*22--3 *(3+ 4)-5";
	std::string str2;
	str2 = MyCalculator::ToArithmeticStr(str1);
	for (auto it : str2)
	{
		std::cout << it;
	}
	std::cout << std::endl;
	std::vector<std::string> vector_str;
	int num = 0;
	MyCalculator::InfixToSuffix(vector_str, str2, num);
	for (auto it : vector_str)
	{
		std::cout << it;
	}
	std::cout << std::endl;
	int num2 = MyCalculator::SuffixArithmetic(vector_str);
	std::cout << num2 << std::endl;
}

void text2()
{
	std::string str="2 1*2 187 -88 /8+1 2*2 2*1 3+2";
	//std::cin >> str;
	int num = MyCalculator::OperationsCalculation(str);
	std::cout << num << std::endl;

}

int main()
{
	test1();
	text2();
	return 0;
}